package com.volatileshooter.state.command.commands;

import com.volatileshooter.state.GameState;
import com.volatileshooter.state.command.Command;

/**
 * Exit command.
 * @author void
 */
public class Exit implements Command {

	/**
	 * keep the GameState instance so that we can later exit the game loop.
	 */
	private GameState gameState;

	/**
	 * Create the Exit command.
	 * @param gameState game state
	 */
	public Exit(final GameState newGameState) {
		this.gameState = newGameState;
	}

	/**
	 * execute the command.
	 * @param args argument array
	 */
	public String execute(final String[] args) {
		gameState.notifyExit();
		return "fo shizzle";
	}
}
